<?php 
/* SVN FILE: $Id$ */
/* StudentMinority Test cases generated on: 2009-11-20 06:39:23 : 1258699163*/
App::import('Model', 'StudentMinority');

class StudentMinorityTestCase extends CakeTestCase {
	var $StudentMinority = null;
	var $fixtures = array('app.student_minority', 'app.student');

	function startTest() {
		$this->StudentMinority =& ClassRegistry::init('StudentMinority');
	}

	function testStudentMinorityInstance() {
		$this->assertTrue(is_a($this->StudentMinority, 'StudentMinority'));
	}

	function testStudentMinorityFind() {
		$this->StudentMinority->recursive = -1;
		$results = $this->StudentMinority->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('StudentMinority' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet',
			'student_count'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>